package com.neo.base.classTest

class Blana private (val flurlt: String) {
  override def toString(): String  = "make flurlt "  +  flurlt


}



object Blana {
  private val blanas  =  Map(
    "apple" -> new Blana("apple"),
    "orengin" -> new Blana("orengin"),
    "borou" -> new Blana("borou")
  )
  def primaryFluits = "apple, orengin, borou"


  def apply(fluit: String) = {
    if (blanas.contains(fluit)) blanas(fluit) else null
  }


  def main(args: Array[String]): Unit = {
    println("Primary colors are : " + Blana.primaryFluits)
    println(Blana.apply("apple"))
    println(Blana("red"))
  }
}
